﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm6.aspx.cs" Inherits="WebApplication1.WebForm6" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function opendialog1() {
            var someValue = window.showModalDialog("WebForm4.aspx", "ABC", "dialogWidth=500px;dialogHeight=250px;status=no;help=no;scrollbars=no");
            document.getElementById("p1t").value = someValue;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" name="p1t" id="p1t" />
        <input type="button" id="btnOpen" name="btnOpen" value="打开对话框" onclick="opendialog1()" />
    </div>
    </form>
</body>
</html>
